from django.urls import path

from Group.views import TeamListGenericView, ApplyToTeamView, TeamMembersAndRequestsView, TeamDetailView, \
    TeamHeaderInfoView, UpdateTeamAnnouncementView, TeamMemberTrainListView, TeamMemberSelfTrainView, \
    TeamMemberSignInView, TeamIndexMemberInfoView, TeamMemberRemarkView

urlpatterns = [
    path('list/', TeamListGenericView.as_view()),
    path('<int:pk>/', TeamDetailView.as_view()),
    path('<int:pk>/header-info/', TeamHeaderInfoView.as_view()),
    path('<int:pk>/member-info/', TeamIndexMemberInfoView.as_view()),
    path('<int:pk>/announcement/', UpdateTeamAnnouncementView.as_view()),
    path('<int:pk>/member-remark/', TeamMemberRemarkView.as_view()),

    path('<int:pk>/train/list/', TeamMemberTrainListView.as_view()),
    path('<int:pk>/train/', TeamMemberSelfTrainView.as_view()),
    path('<int:pk>/train/todo/', TeamMemberSignInView.as_view()),


    path('apply-to-team/', ApplyToTeamView.as_view(), name='apply-to-team'),
    path('approve-team-member/<int:pk>/', ApplyToTeamView.as_view(), name='approve-team-member'),
    path('team-members-and-requests/<int:pk>/', TeamMembersAndRequestsView.as_view(), name='team-members-and-requests'),
]
